package com.orhon.smartcampus.modules.student.inputMapper;


import java.util.Map;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import com.alibaba.fastjson.JSON;
import com.orhon.smartcampus.modules.student.gqlInputModel.GQLEclassInput;

@Mapper
public interface EclassInputMapper {


    EclassInputMapper MAPPER = Mappers.getMapper(EclassInputMapper.class);

    default GQLEclassInput mapInput(Map map){
        String json = JSON.toJSONString(map);
        GQLEclassInput input = JSON.parseObject(json , GQLEclassInput.class);
        return input;
    }


}
